package com.beauty.dressing.module.mine.persenter.contract;

import com.beauty.dressing.common.bean.AddressBean;
import com.beauty.dressing.common.bean.AddressManagerBean;

import java.util.List;

public interface AddressMangerContract {
    /**
     * 界面回调数据
     */
    interface ViewControl {
        void showProgress();

        void onGetAllAddress(boolean isSuccess, int code, String message, List<AddressManagerBean> mList);

        void onCreateAddress(boolean isSuccess, int code, String message);

        void onUpdateAddress(boolean isSuccess, int code, String message);

        void onAreas(boolean isSuccess, int code, String message, List<AddressBean> list);
    }

    /**
     * 界面请求方法
     */
    interface Presenter {
        void getAllAddress(long member_id, String token);

        void updateAddress(long member_id, String token, String address_id, String area
                , String detailed, String name, String phone, String status);

        void createAddress(long member_id, String token, String area
                , String detailed, String name, String phone, String status);

        void areas(String area_id, String token);

    }
}
